package cn.snowsoft.iot.module.cps.constant;

/**
 * 魔法值
 */
public class CpsConstant {
    //正常状态
    public static final String ENABLE_STATUS = "1";
    //异常状态
    public static final String DISABLE_STATUS = "0";
    //逻辑删除字段
    public static final Integer LOGICDELETE = 1;
    //是否推送 1：否 2：是
    public static final String ISPUSH_STATUS = "2";
    //这里的编号根据同一位置相同模型设备的数量编制，格式为两位整数，例如01、02
    public static final String MODEL_FORMAT = "%02d";
    //删除从模型带过来的   属性 事件 服务
    public static final Integer DELETE_STATUS = 2;
    //连接状态 连接
    public static final String CONNECT_STATUS = "2";
    //断开
    public static final String BREAK_STATUS = "1";
    //物模型带过来的事件 状态1为自身新增的  2为系统自动生成的
    public static final Integer VOLUNTARILY_STATUS = 2;
    //构造产品所需属性集合 启用
    public static final String ISENABLE = "2";
    //构造产品所需属性集合 连接
    public static final Integer STATUS = 2;
    //服务启动后重新订阅所有已启动设备的流计算
    public static final String STREAMING_COMPUTING_STATUS = "2";
    //线程休眠事件
    public static final Integer THREAD_SLEEP = 2;
    // 设置超时时间
    public static final int TIME_OUT_PERIOD = 60;
    // 设置会话心跳时间
    public static final int HEARTBEAT_TIME = 60;
    public static final String FUNC_ORIGINAL = "ORIGINAL";
    public static final String DEFAULT_POINT_TYPE = "result";
    public static final String BLANK_STRING = "";
    public static final String EQ_STRING = "=";
    public static final String COMMA_STRING = ",";
    //webscoket请求端口
    public static final String WEBSCOKET = "/cps-websocket";
    //今天
    public static final String TODAY = "today";
    //本周
    public static final String WEEK = "Week";
    //本月
    public static final String MONTH = "month";
    //时间区间
    public static final String DATACHANGE = "dataChange";
    public static final String STANDARDPOINTCODE = "standard_point_code";
    //流计算 进行数据字典的查询
    public static final String CALCMETHOD = "calc_method";
    public static final String DEFAULTTENANT = "000000";
    //统计流计算数据的开关停
    public static final String STOP = "stop";
    public static final String START = "start";
    //向前端返回的值
    public static final String STOPZERO = "0";
    public static final String STOPONE = "1";
	//CPS变量类型获取数据字典
	public static final String CPSVARIABLETYPE = "cps_variable_type";
	//CPS数据类型获取数据字典
	public static final String CPSDATATYPE = "cps_data_type";
	//CPS测点类型获取数据字典
	public static final String STANDARDPOINTTYPE = "standard_point_type";
	//根据单位时间投料量和设备运行状态获取工艺开停机记录
	public static final String IDTCRAFTHALT = "HZCL10MIN";


}
